#include "subform.h"
#include "ui_subform.h"


SubForm::SubForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SubForm)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);//去掉标题栏

    m_edit = new My_lineEdit(this);
    m_edit->setObjectName("1");
    m_edit->setGeometry(10,10,200,20);

    m_edit2 = new My_lineEdit(this);
    m_edit2->setObjectName("2");
    m_edit2->setGeometry(10,50,200,20);


}

SubForm::~SubForm()
{
    delete ui;
}

void SubForm::on_pushButton_clicked()
{
    this->close();
}
